//
//  UserCenterTextField.h
//  Civacrm
//
//  Created by 王桂敏 on 2017/2/7.
//  Copyright © 2017年 王桂敏. All rights reserved.
//

#import "WGMTextField.h"

@class UserCenterTextField;

@protocol UserCenterTextFieldDelegate <NSObject>
@optional

- (void)textFieldDidChange:(UserCenterTextField *)textField;


@end

@interface UserCenterTextField : WGMTextField

@property (nonatomic,assign) id<UserCenterTextFieldDelegate> userCenterTextFieldDelegate;

@property (nonatomic,strong) UIButton *rightButton;

@property (nonatomic,assign) BOOL isPhone;//    是不是手机号,默认为NO

- (UserCenterTextField *)initWithFrame:(CGRect)frame
                                 image:(NSString *)imageName
                           placeholder:(NSString *)placeholder
                          keyboardType:(UIKeyboardType)keyboardType
                       clearButtonMode:(UITextFieldViewMode)clearButtonMode
                              delegate:(id<UITextFieldDelegate>)delegate
           userCenterTextFieldDelegate:(id<UserCenterTextFieldDelegate>)userCenterTextFieldDelegate;


@end
